package com.ttc.group2.videochat.model;

import java.io.Serializable;

public class Message implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private long id;
	private long dialogId;
	private Integer senderId;
	private Integer recipientId;
	private String message;
	private String attachUrl;
	private long time;

	public Message() {

	}

	public Message(long id, long dialogId, Integer senderId,
			Integer recipientId, String message, String attachUrl, long time) {
		this.id = id;
		this.dialogId = dialogId;
		this.senderId = senderId;
		this.recipientId = recipientId;
		this.message = message;
		this.attachUrl = attachUrl;
		this.time = time;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getDialogId() {
		return dialogId;
	}

	public void setDialogId(long dialogId) {
		this.dialogId = dialogId;
	}

	public Integer getSenderId() {
		return senderId;
	}

	public void setSenderId(Integer senderId) {
		this.senderId = senderId;
	}

	public Integer getRecipientId() {
		return recipientId;
	}

	public void setRecipientId(Integer recipientId) {
		this.recipientId = recipientId;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getAttachUrl() {
		return attachUrl;
	}

	public void setAttachUrl(String attachUrl) {
		this.attachUrl = attachUrl;
	}

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

}
